<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<div class="AdminPageText">
List Of QuanLy
</div>
<table class="Grid" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>UserName</th>
			<th>Email</th>
			<th>Role</th>
			<th></th>
			<th></th>
		<tr>
	</thead>
	<% for (int i=0; i<Model.QuanLyModel.GetModel.LstObjModel.Count; i++){
		if (i % 2 != 0) {%>
		<tr class="Row" id="row-<%= Model.QuanLyModel.GetModel.LstObjModel[i].BaseInfo.ID %>">
		<% }
		else { %>
		<tr class="AlternatingRow" id="row-<%= Model.QuanLyModel.GetModel.LstObjModel[i].BaseInfo.ID %>">
		<% } %>
			<td><%= Model.QuanLyModel.GetModel.LstObjModel[i].BaseInfo.UserName %></td>
			<td><%= Model.QuanLyModel.GetModel.LstObjModel[i].BaseInfo.Email %></td>
			<td><%= Model.QuanLyModel.GetModel.LstObjModel[i].BaseInfo.Role %></td>
			<td>
				<a href="../../Admin/DetailOfQuanLy?id=<%= Model.QuanLyModel.GetModel.LstObjModel[i].BaseInfo.ID %>">
				<span style="color: Blue; text-decoration: underline">Select</span>
				</a>
			</td>
			<td>
				<%= Ajax.ActionLink("Delete", "DeleteQuanLy", "Admin", new { id = Model.QuanLyModel.GetModel.LstObjModel[i].BaseInfo.ID }, new AjaxOptions{Confirm = "Are you sure you want to Delete it? This action cannot be undone.", HttpMethod = "Delete", OnComplete = "jsonDelete_OnComplete"})%>
			</td>
		</tr>
	<% } %>  
</table>
